package com.alibaba.travel.comment.service;

import com.alibaba.travel.comment.dto.CommentDto;
import com.alibaba.travel.comment.dto.entity.CommentEntity;
import com.alibaba.travel.common.utils.PageUtils;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 评论表
 *
 * @author wherezy
 * @email wherezy@tom.com
 * @date 2023-02-23 15:11:41
 */
public interface CommentService extends IService<CommentEntity> {
    /**
     * 查询所有
     */
    PageUtils queryAll(Map<String, Object> params);


    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存评论信息 重载 save方法
     * @param entity
     * @return
     */
    boolean save(CommentDto entity);

    /**
     * 通过id删除评论信息
     */
    void deleteByIds(List<Long> asList);
}

